package com.jd.sunny.java.multithreading.thread;

public class PrintUserRunnable implements Runnable {

    private User user = null;

    public void run() {

//		while(true){
//			this.user.print();
//		}
        for (int i = 0; i < 100; i++) {
            System.out.println("username:  " + user.getUsername() + "password: " + user.getPassword() + "  " + user.getNumber());
        }
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }
}
